package io;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏西西
 * Date: 2023-10-10
 * Time: 10:22
 */
public class IOD2 {
    public static void main(String[] args) throws IOException {
        File file = new File("d:/hello.txt");
        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(file.createNewFile());
        System.out.println(file.isDirectory());
        System.out.println(file.isFile());

    }
}
